import 'package:gluz/generated/json/base/json_field.dart';
import 'package:gluz/generated/json/shop_category_entity.g.dart';
import 'dart:convert';
export 'package:gluz/generated/json/shop_category_entity.g.dart';

@JsonSerializable()
class ShopCategoryEntity {
	String id = '';
	String parentId = '';
	String name = '';
	int level = 0;
	String path = '';
	int sortOrder = 0;
	int status = 0;
	String description = '';
	String images = 'https://shop.gluz.com.cn/upload/1/20241219/d43f7d723b7d38a667e59926875c393f.png';
	String createdAt = '';
	String updatedAt = '';
	double aspectRatio = 0.0;
	bool isSelected = false;

	ShopCategoryEntity();

	factory ShopCategoryEntity.fromJson(Map<String, dynamic> json) => $ShopCategoryEntityFromJson(json);

	Map<String, dynamic> toJson() => $ShopCategoryEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}